<div class="span-19">
    <div id="content">
        <?php
        $heading = 'Create Station';
        $to_url = base_url() . 'station/index';
        if (isset($station)) {
            $heading = 'Edit Station';
            $to_url = base_url() . 'station/edit?id=' . $station['id'];
        }
        ?>
        <h1><?php if (isset($station)) echo 'Edit Staion';else echo 'Create Station'; ?></h1>
        <div class="form">
            <form id="station-form" action="<?php echo $to_url; ?>" method="post">
                <p class="note">Fields with <span class="required">*</span> are required.</p>
                <div class="row">
                    <label for="Station_name" class="required">Name <span class="required">*</span></label>		<input size="60" maxlength="80" name="Station[name]" id="Station_name" type="text"
                                                                                                                    value="<?php if (isset($station)) echo $station['name'] ?>">
                                                                                                                    <?php if (isset($error)) echo $error; ?>
                </div>
                <?php if (isset($message)): ?>
                    <div class="success">
                        <label><?php echo $message ?></label>
                    </div>
                <?php endif; ?>
                <div class="row buttons">
                    <input type="submit" name="yt0" value="Create">	</div>
            </form>
        </div><!-- form -->	</div>
</div>
